// app.js

const utils = require('./utils/util');

wx.$https = require('/utils/request')


App({
  onLaunch(options) {

    //登录
    wx.login({
      success: res => {
        console.log('I am wx.login:',res.code)
        wx.get('http://localhost:3000/wx/login?code=' + res.code).then(res => {
          console.log(res)
          wx.userInfo = res.code
        })
        
      }
    })
  },
  onShow() {

  },



  globalData: {
    userInfo: null
  }
})